package com.kl.feign.fallback;

import com.kl.domain.DetailedDTO;
import com.kl.domain.OrderDTO;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.CreatOrderServiceFeign;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class CreatOrderServiceFeignFallback implements CreatOrderServiceFeign  {
    @Override
    public Result add(List<OrderDTO> orderDTO) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result pay(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result waybill(Long orderId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<DetailedDTO>> findDetailById(Long waybillId) {
        return Result.build(ConstantEnum.FaillBack);
    }
}
